<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<table class="tab-list shield-table-odd">
    <tr>
        <th class="w50 taCenter">序号</th>
	    <th>敏感词</th>
	    <th>类型</th>
	    <th>创建时间</th>
	    <th>修改时间</th>
        <th class="operate_icon">操作</th>
    </tr>
<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
    <tr>
        <td style="text-align: center;">${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
        
	   	<td title="${model.word }">${model.word }</td>
	   	<td><shield:switchOput data="1=替换|2=审核|禁用" value="${model.type}"></shield:switchOput>
<c:if test="${model.type==1 }">【${model.replaceWord}】</c:if>
	   	</td>
	   	<td title="${model.createTime }" class="shieldDatetime">${model.createTime }</td>
	   	<td title="${model.updateTime }" class="shieldDatetime">${model.updateTime }</td>
	
        <td>
        	<!-- href改为data-url -->
            <a data-url="${ctxPathA }/system/sensitiveword/show" shieldParams="{'id':'${model.id }'}" class="shieldDialog shield-icon show" viewTitle="敏感词详情" data-icon-title="查看敏感词详情"
               viewWidth="400"></a>
            <a data-url="${ctxPathA }/system/sensitiveword/toAddOrUpdate" shieldParams="{'id':'${model.id }'}"  class="shieldDialog shield-icon update" viewTitle="修改敏感词" data-icon-title="修改敏感词"
               viewWidth="400"></a>
            <a data-url="${ctxPathA }/system/sensitiveword/del" shieldParams="{'id':'${model.id }'}"  class="shieldAjax shield-icon del" viewTitle="确定要删除该条记录吗?"></a>
        </td>
    </tr>
</c:forEach>
<c:if test="${empty pageBean.resultList }">
 	<!-- 无数据时展示，有数据时展示上面的列表 -->
	<tr class="nodatatr_plugin">
        <td colspan="7" class="taCenter">暂无数据</td>
    </tr>
</c:if>
</table>
</shield:permssion>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>